﻿using System;
namespace GtsServer.Model
{
	/// <summary>
	/// 1
	/// </summary>
	[Serializable]
	public partial class User
	{
		public User()
		{}
		#region Model
		private int _id;
		private int _communicationid;
		private bool? _isrobot;
		private int? _state;
		private DateTime _registertime;
		private int? _userinfoid;
		private int _chancetypeid;
		private int _plsettingid;
		private string _imsi;
        private string _imei;
        private string _number;
        private string _area;
        private string _plmn;
        private string _mac;
        private string _userAccount;
        private DateTime _prevRequestTime;
        private int _robotIndex;
        private int _inviteScore;
        private int _inviteTotalScore;
        private int _inviteSuccessNum;
        private int _inviteUserID;
        private DateTime _inviteTime;

        public DateTime InviteTime
        {
            get { return _inviteTime; }
            set { _inviteTime = value; }
        }

        public int InviteScore
        {
            get { return _inviteScore; }
            set { _inviteScore = value; }
        }

        public int InviteTotalScore
        {
            get { return _inviteTotalScore; }
            set { _inviteTotalScore = value; }
        }

        public int InviteSuccessNum
        {
            get { return _inviteSuccessNum; }
            set { _inviteSuccessNum = value; }
        }

        public int InviteUserID
        {
            get { return _inviteUserID; }
            set { _inviteUserID = value; }
        }

        public int RobotIndex
        {
            get { return _robotIndex; }
            set { _robotIndex = value; }
        }

        public DateTime PrevRequestTime
        {
            get { return _prevRequestTime; }
            set { _prevRequestTime = value; }
        }

        public string UserAccount
        {
            get { return _userAccount; }
            set { _userAccount = value; }
        }

        public string Mac
        {
            get { return _mac; }
            set { _mac = value; }
        }

        public string Plmn
        {
            get { return _plmn; }
            set { _plmn = value; }
        }

        public string Area
        {
            get { return _area; }
            set { _area = value; }
        }

        public string Number
        {
            get { return _number; }
            set { _number = value; }
        }

        public string IMEI
        {
            get { return _imei; }
            set { _imei = value; }
        }

		/// <summary>
		/// 用户账号（系统生成）
		/// </summary>
		public int ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 所属渠道id
		/// </summary>
		public int CommunicationID
		{
			set{ _communicationid=value;}
			get{return _communicationid;}
		}
		/// <summary>
		/// 是否是机器人（自己创建的用户）
		/// </summary>
		public bool? IsRobot
		{
			set{ _isrobot=value;}
			get{return _isrobot;}
		}
		/// <summary>
		/// 用户状态
		/// </summary>
		public int? State
		{
			set{ _state=value;}
			get{return _state;}
		}
		/// <summary>
		/// 注册时间（第一次登陆时间）
		/// </summary>
		public DateTime RegisterTime
		{
			set{ _registertime=value;}
			get{return _registertime;}
		}
		/// <summary>
		/// 用户注册账号id（用户的详细信息）
		/// </summary>
		public int? UserInfoID
		{
			set{ _userinfoid=value;}
			get{return _userinfoid;}
		}
		/// <summary>
		/// 当前用户所用的概率（高概率，低概率，标准概率）
		/// </summary>
		public int ChanceTypeID
		{
			set{ _chancetypeid=value;}
			get{return _chancetypeid;}
		}
		/// <summary>
		/// 用户盈亏配置id（如果不存在使用公用的盈亏设置）
		/// </summary>
		public int PLSettingID
		{
			set{ _plsettingid=value;}
			get{return _plsettingid;}
		}
		/// <summary>
		/// 用户手机IMSI
		/// </summary>
		public string IMSI
		{
			set{ _imsi=value;}
			get{return _imsi;}
		}
		#endregion Model

	}

    public partial class UserShow : User
    {
        private int _pid;
        private string _pName;
        private string _userName;
        private decimal _price;

        public decimal Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        public string PName
        {
            get { return _pName; }
            set { _pName = value; }
        }

        public int Pid
        {
            get { return _pid; }
            set { _pid = value; }
        }
    }
}

